﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace EntitiesContainer
{
    public class Product
    {
        [Key]
        public int ProductId { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public decimal Price { get; set; }

        [Browsable(false)]
        public string Description { get; set; }

        [Browsable(false)]
        [DataType(DataType.Upload)]
        public string Image { get; set; }

        [Browsable(false)]
        [Required]
        public virtual ProductCategory Category { get; set; }
    }
}
